package com.fenghen.notfoelearning;

import javax.swing.*;

public class MyToolWindowPanel extends JPanel {
    public MyToolWindowPanel() {
        setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
        JLabel label = new JLabel("这是我的插件工具窗口内容");
        add(label);

        JButton button = new JButton("点击我");
        button.addActionListener(e -> {
            // 在这里定义按钮的行为
            JOptionPane.showMessageDialog(this, "按钮被点击了！");
        });
        add(button);
    }
}
